{% extends _layout %}
{% block title %}
  {{ module_name }}
{% endblock %}
{% block breadcrumb %}
  {{ breadcrumbs }}
{% endblock %}
{% block content %}
  <script type="text/javascript">
    function save() {
      var options = {
        success: showResponse  // post-submit callback
      };
      $('#frmManagement').ajaxSubmit(options);
    }

    function showResponse(responseText, statusText, xhr, $form) {
      if (responseText == 'success-setting') {
        var url = $.url(document.location.href);
        if (url.fsegment(1) == 'save') {
          location.reload();
        } else {
          location.href = root + "admincp/setting/#/save";
        }
      }
    }
  </script>
  <div id="" class="table-responsive">
    <div class="gr_perm_error" style="display:none;">
      <p><strong>FAILURE: </strong><span id="txt_error">Permission Denied.</span></p>
    </div>
    <div class="gr_perm_success" style="display:none;">
      <p><strong>SAVE SUCCESS.</strong></p>
    </div>
    <div class="well-c">
    <form id="frmManagement" action="" method="post" enctype="multipart/form-data">
      <div class="form-group">
        <label for="exampleInputEmail1">Email address</label>
        <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1">Password</label>
        <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
      </div>
      <div class="form-group">
        <label for="exampleInputFile">File input</label>
        <input type="file" id="exampleInputFile">

        <p class="help-block">Example block-level help text here.</p>
      </div>
      <div class="checkbox">
        <label>
          <input type="checkbox"> Check me out
        </label>
      </div>
      <button type="submit" class="btn btn-default">Submit</button>
    </form>
  </div></div>

{% endblock %}